package com.ibeeking.found.cop.service.common.enums;

public enum WxCpDataTalkFriendsAgreeEnum {

    FRIEND_AGREE("Agree", "同意"),
    FRIEND_DISAGREE("Disagree", "不同意"),
    ;
    private String code;
    private String desc;

    WxCpDataTalkFriendsAgreeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(String code) {
        for (WxCpDataTalkFriendsAgreeEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj.getDesc();
            }
        }
        return null;
    }
}
